home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / processes / fork < prev    next >
Encoding:
Text File  |  1992-12-17  |  758 b   |  17 lines

  1.  
  2.  
  3.           fork
  4.                Fork the current Tcl process.  Fork returns zero to the
  5.                child process and the process number of the child to
  6.                the parent process. If the fork fails, a Tcl error is
  7.                generated.
  8.  
  9.                If an execl is not going to be performed before the
  10.                child process does output, or if a close and dup
  11.                sequence is going to be performed on stdout or stderr,
  12.                then a flush should be issued against stdout, stderr
  13.                and any other open output file before doing the fork.
  14.                Otherwise characters from the parent process pending in
  15.                the buffers will be output by both the parent and child
  16.                processes.
  17.